<?php
namespace Admin\Model;
use Think\Model\RelationModel;
	class ActModel extends RelationModel{ 
		
		protected $_auto=array(
			array('created_at','nowtime',1,'callback'),
			array('status','0'),
			array('hits','0'),
			array('join_num','0'),
			array('content','html_special_chars_decode',3,'callback'),
		);

		protected $_link=array(
			
		);
		

		protected function nowtime(){
	        return strtotime('now');
	    }
	    
		protected function html_special_chars_decode(){
			 //cont = str_replace(';nbsp',replace,$_POST['content']);
	        return htmlspecialchars_decode($_POST['content']);
	    }
	}
?>
